<template>
	<view>
		<htz-signature cid="sign" @submit="submit" @fail="fail"></htz-signature>
	</view>
</template>

<script>
	import htzSignature from '@/components/htz-signature/htz-signature.vue'
	const app = getApp()
	
	export default {
		components:{
			htzSignature, 
		},
		data() {
			return {
				
			}
		},
		methods: {
			submit(res){
				app.globalData.returns.sign = res.tempFilePath
				uni.navigateBack()
			},
			
			fail(res){
				console.error(res)
			}
		}
	}
</script>

<style>

</style>
